package cn.springcloud.fix.es.web.service;

import cn.springcloud.fix.es.web.request.AddCartRequest;
import cn.springcloud.fix.es.web.request.DeleteCartRequest;
import cn.springcloud.fix.es.web.request.UpdateCartRequest;
import cn.springcloud.fix.es.web.response.AddCartResponse;
import cn.springcloud.fix.es.web.response.DeleteCartResponse;
import cn.springcloud.fix.es.web.response.UpdateCartResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface CartService {

    AddCartResponse add(@Validated @RequestBody AddCartRequest request, HttpServletRequest httpServletRequest);

    UpdateCartResponse update(@Validated @RequestBody UpdateCartRequest request, HttpServletRequest httpServletRequest);

    DeleteCartResponse delete(@Validated @RequestBody DeleteCartRequest request, HttpServletRequest httpServletRequest);
}
